package com.ljh.booksysms.service.impl;

import org.apache.ibatis.session.SqlSession;

import com.ljh.booksysms.dao.UserInfoMapper;
import com.ljh.booksysms.pojo.UserInfo;
import com.ljh.booksysms.service.UserInfoServices;
import com.ljh.booksysms.util.MyBatisUtil;

public class UserInfoServicesImpl implements UserInfoServices{
	SqlSession session=null;
	UserInfo userInfos=new UserInfo();
	
	
	public UserInfo userLogin(UserInfo userInfo) {
		session=MyBatisUtil.init(session);
		
		UserInfoMapper uiMapper=session.getMapper(UserInfoMapper.class);
		
		userInfos=uiMapper.userLogin(userInfo);
		
		MyBatisUtil.close(session);
		return userInfos;
	}

}
